package com.buer.storage.service;


import com.buer.storage.dto.SelectStockDto;
import com.buer.storage.entity.Stock;
import com.buer.storage.vo.StockVo;
import com.github.pagehelper.PageInfo;

import java.util.List;
import java.util.Map;

/**
 * 装备库存表
 * @date 2021-01-21 21:24:06
 */
public interface StockService {
	
	Stock get(Integer stockId);
	
	List<Stock> list(Map<String, Object> map);

	List<StockVo> getAllStock();
	
	int count(Map<String, Object> map);
	
	int save(Stock stock);
	
	int update(Stock stock);
	
	int remove(Integer stockId);
	
	int batchRemove(Integer[] stockIds);

    PageInfo<Stock> getStockList(Map<String, Object> map);

	Stock getOne(Map<String, Object> map);

	List<SelectStockDto> selectStockNumSum();

	List<Map> selectNumByDate();

	List<Map> selectNumByName();
}
